﻿using K9Nano.Dependency;

namespace K9Nano.Authorization
{
    public class DefaultApiResourceProviderFactory : IApiResourceProviderFactory, ISingletonDependency
    {
        private readonly IApiResourceProvider _default;

        public DefaultApiResourceProviderFactory(IApiResourceProvider defaultProvider)
        {
            _default = defaultProvider;
        }

        public IApiResourceProvider Create(string api)
        {
            // TODO 暂时不能获取其他微服务的API资源
            return _default;
        }
    }
}